package com.anuo.app.modules.system.entity;

import com.anuo.app.common.entity.EntityBase;
import com.anuo.app.common.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Maintenance extends EntityBase {

    private boolean inMaintenance;

    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Date maintenanceBeginTime;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Date maintenanceEndTime;

    public boolean isInMaintenance() {
        return inMaintenance;
    }

    public void setInMaintenance(boolean inMaintenance) {
        this.inMaintenance = inMaintenance;
    }

    public Date getMaintenanceBeginTime() {
        return maintenanceBeginTime;
    }

    public void setMaintenanceBeginTime(Date maintenanceBeginTime) {
        this.maintenanceBeginTime = maintenanceBeginTime;
    }

    public Date getMaintenanceEndTime() {
        return maintenanceEndTime;
    }

    public void setMaintenanceEndTime(Date maintenanceEndTime) {
        this.maintenanceEndTime = maintenanceEndTime;
    }
}